package org.cloud.demo1.controller;

import org.cloud.demo1.entity.UserOfDemo1;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试用
 * @author wangyuan
 * @since 2019年6月4日 上午9:40:02
 *
 */
@RestController
@RequestMapping(value = "/demo1Test2")
public class Demo1Test2Controller {

	@RequestMapping(value = "/request1", method = RequestMethod.GET)
	public String testMethod1OfDemo1Test2() {
		return "你成功的调用了Demo1的Test2的服务";
	}
	
	@RequestMapping(value = "/request2", method = RequestMethod.GET)
	public UserOfDemo1 testMethod2OfDemo1Test2() {
		return new UserOfDemo1(3, 33, "rrr");
	}
}
